package com.luo.storage.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("item_category")
@Schema(description = "商品分类表",name = "ItemCategory")
@Data
public class ItemCategory {

    /**
     * 基本信息字段
     */
    @Schema(title = "商品id",description = "商品分类id",accessMode = Schema.AccessMode.READ_ONLY)
    private Long id;
    @Schema(title = "商品SKU名称")
    private String name;

    /**
     * 数据库字段
     */
    @Schema(title = "创建人")
    private String createBy;
    @Schema(title = "创建时间",accessMode = Schema.AccessMode.READ_ONLY)
    private LocalDateTime createTime;
    @Schema(title = "修改人")
    private String updateBy;
    @Schema(title = "修改时间",accessMode = Schema.AccessMode.READ_ONLY)
    private LocalDateTime updateTime;

    /**
     * 分类字段
     */
    @Schema(description = "父级商品")
    private Long parentId;

    /**
     * 排序字段
     */
    @Schema(description = "排序号")
    private int shot;

}
